#ifndef COMMANDE_AVANCER_H
#define COMMANDE_AVANCER_H
#include "CommandesRobot.h"
class CommandesRobot;
class CommandeAvancer : public CommandesRobot{
	protected:
		Position * _anciennePosition;
	public:
		static CommandeAvancer _instance;
		CommandeAvancer(Robot *r=NULL, string name="AVANCER"):CommandesRobot(r,name){
			if (r!=NULL)
				_anciennePosition =r->getPosition();
		}
		CommandeAvancer(string name):CommandesRobot(name){}
		CommandeAvancer* constructeurVirtuel(Robot * r){
			return new CommandeAvancer(r);
		}
		void execute();
		void desexecute();
		bool reversible();
};
#endif
